-- 导入必要的模块

add_rules("mode.debug", "mode.release")
add_requires("spdlog","fmt","libcurl","libuv", "nlohmann_json")
-- 打印调试信息函数
-- function print_info()
--     print("Project Information:")
--     -- print("Name: " .. project.name())
--     -- print("Version: " .. project.version())
--     -- print("Directory: " .. project.directory())

--     print("\nSystem Information:")
--     print("Host OS: " .. os.host())
--     print("Architecture: " .. os.arch())

--     print("\nEnvironment Variables:")
--     print("PATH: " .. os.getenv("PATH"))

--     -- print("\nConfigurations:")
--     -- for k, v in pairs(config.get_all()) do
--     --     print(k .. ": " .. tostring(v))
--     -- end
-- end
-- print_info()

target("test_spdlog")
    set_kind("binary")
    add_files("main_spdlog.cpp")
    add_packages("spdlog")
    set_symbols("debug")
    set_optimize("none")
    set_languages("c++17")
    -- set_runtimes("MT")


target("test_fmt")
    set_kind("binary")
    add_files("main_fmt.cpp")
    add_packages("fmt")
    set_symbols("debug")
    set_optimize("none")
    set_languages("c++17")
    
    
    

target("test_curl")
    set_kind("binary")
    add_files("main_curl.cpp")
    add_packages("libcurl")
    set_symbols("debug")
    set_optimize("none")
    set_languages("c++17")

target("test_libuv")
    set_kind("binary")
    add_files("main_libuv.cpp")
    add_packages("libuv")
    set_symbols("debug")
    set_optimize("none")
    set_languages("c++17")
    
    
    
target("test_nlohmann_json")
    set_kind("binary")
    add_files("main_nlohmann_json.cpp")
    add_packages("nlohmann_json")
    set_symbols("debug")
    set_optimize("none")
    set_languages("c++17")
        

    
-- target("test_c11")
--     set_kind("binary")
--     add_files("main_c11.cpp")
--     set_symbols("debug")
--     set_optimize("none")
--     set_languages("c++20")
